Elementor\TemplateLibrary\Manager B

Total Complexity 83
Dependencies 15
Dependents 1
Total lines 749
Lines of code 312
Logical lines of code 186
Comment lines 307
Methods 29
Properties 3

Methods 29

Method Rating Maintainability Complexity Lines of code
handle_direct_actions()
A
49 8 30
export_template()
A
52 8 22
is_allowed_to_read_template()
S
60 6 12
get_template_data()
S
53 5 23
handle_ajax_request()
S
57 5 17
save_template()
S
56 4 18
update_template()
S
57 4 16
register_source()
S
59 4 15
get_templates()
S
62 4 10
import_from_json()
S
60 3 13
get_library_data()
S
60 3 13
delete_template()
S
62 3 11
register_ajax_actions()
S
58 2 17
update_templates()
S
65 3 9
import_template()
S
58 2 15
register_default_sources()
S
63 2 11
ensure_args()
S
67 2 7
get_import_images_instance()
S
71 2 6
mark_template_as_favorite()
S
66 2 8
get_source()
S
69 2 7
handle_direct_action_error()
S
80 1 3
on_direct_import_template_success()
S
80 1 3
unregister_source()
S
82 1 3
set_wordpress_adapter()
S
81 1 3
enable_json_template_upload()
S
82 1 3
direct_import_template()
S
71 1 5
get_registered_sources()
S
82 1 3
add_actions()
S
75 1 4
__construct()
S
74 1 5